package agh.sr.lab4.bank.server;

import java.util.HashMap;

import agh.sr.lab4.common.utils.BankAccountDataFileProvider;
import agh.sr.lab4.common.utils.IBankAccountDataProvider;
import Ice.Current;
import Ice.Object;
import Ice.ServantLocator;
import Ice.UserException;

public abstract class BankAbstractServantLocator implements ServantLocator {

	protected IBankAccountDataProvider accountDataProvider = new BankAccountDataFileProvider();
	protected HashMap<String, BankAccountI> bankAccountsMap = new HashMap<String, BankAccountI>();

	@Override
	public synchronized void finished(Current curr, Object servant, java.lang.Object cookie)
			throws UserException {

		System.out.println("BankAbstractServantLocator.finished()");
	}

	@Override
	public synchronized void deactivate(String category) {

		System.out.println("BankAbstractServantLocator.deactivate()");
	}

}